import axios from '@/utils/request'

export default{
    //获取数据
    getMemberList(){
        return axios.post("member/list/search/1/20")
    },
    //添加数据
    addMemberData(data){
        return axios.post("member",data)
    },
    //编辑
    edit(data){
        return axios.put("member/:id",data)
    },
    //删除
    delete(id){
        return axios.delete('member/'+id)
    },
    //查询
    search(){
        return axios.get("member/id")
    }
}